package com.amado.course43awt;

import java.awt.*;
public class NetMeeting extends Frame
{
	NetMeeting(String name)
	{
		super(name);
		MenuBar a=new MenuBar();
		Menu b=new Menu("呼叫(C)");
		Menu c=new Menu("查看(V)");
		Menu d=new Menu("工具(T)");
		Menu e=new Menu("聊天");
		b.add("新呼叫");
		b.add("挂断");
		b.add("exit");
		c.add("状态栏");
		c.add("键盘拨号");
		d.add("共享");
		d.add(e);
		e.add("群聊");
		e.add("单聊");
		a.add(b);
		a.add(c);
		a.add(d);
		setMenuBar(a);
		setLayout(new GridLayout(2,1));
		Panel panel=new Panel();
		Panel panelUp=new Panel();
		Panel panelR=new Panel();
		Panel panelRs=new Panel();
		Panel up = new Panel();
		Panel down =new Panel();
		add(up);
		add(down);
		up.setLayout(new BorderLayout());
		up.add(panelRs,BorderLayout.EAST);
		up.add(panel,BorderLayout.CENTER);
		Choice text=new Choice();
		TextArea t=new TextArea("NetMeeting",11,25);
		panelR.setLayout(new GridLayout(5,1,1,10));
		text.add(" 192.168.0.17                                      ");
		text.add(" 192.168.0.1  ");
		panelUp.add(text);  

		panelRs.setLayout(new BorderLayout());
		panelRs.add(panelR,BorderLayout.CENTER);
		panelRs.add(new Panel(),BorderLayout.WEST);
		panelRs.add(new Panel(),BorderLayout.EAST);
		panelR.add(new Button("呼叫"));
		panelR.add(new Button("挂机"));
		panelR.add(new Button("查找"));
		panelR.add(new Panel());
		panelR.add(new Panel());
		panel.add(text);
		panel.add(t);

		Panel downP1 = new Panel();
		Panel downP2 = new Panel();
		Panel downCenter = new Panel();
		TextArea tex =new TextArea("张 小凡",10,33);
		down.setLayout(new BorderLayout(2,2));
		down.add(downP1,BorderLayout.NORTH);
		down.add(downP2,BorderLayout.SOUTH);
		down.add(downCenter,BorderLayout.CENTER);
		downP1.setLayout(new GridLayout(1,4,8,1));
		downP2.setLayout(new GridLayout(1,5,8,1));
		downP1.add(new Button("停止"));
		downP1.add(new Button("暂停"));
		downP1.add(new Button("调整"));
		downP1.add(new Panel());
		downP2.add(new Button("共享程序"));
		downP2.add(new Button("聊天"));
		downP2.add(new Button("白板"));
		downP2.add(new Button("传送文件"));
		downP2.add(new Panel());
		downCenter.add(tex);
		setBounds(300,150,270,500);
		setBackground(Color.gray);
		show();
	}
	public static void main(String[] args) 
	{
		new NetMeeting("NetMeeting");
	}
}
